/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lolbuilder.Items.Impl;

import java.util.logging.Level;
import java.util.logging.Logger;
import lolbuilder.Champions.Interf.DummyChamp;
import lolbuilder.Items.Interf.HasPassive;
import lolbuilder.Items.Interf.HasUniquePassive;
import lolbuilder.Items.Interf.ItemsSuper;
import lolbuilder.params.Parameters;

/**
 *
 * @author maximveron
 */
public class TrynityForce extends ItemsSuper implements HasUniquePassive {

    public TrynityForce() {
        isAdItem=true;
        price=4150;
    }
    
    @Override
    public void applyStats(DummyChamp gc) {
        gc.ap+=30;
        gc.ad+=30;
        gc.addAttackSpeed(30);
        gc.addCritLuck(15);
        gc.hp+=250;
        gc.mana+=250;
    }

    public void applyUniquePassive(DummyChamp gc) {
        DummyChamp dc=null;
        try {
            dc=Parameters.champUsedForAd.getClass().newInstance();
        } catch (InstantiationException ex) {
            Logger.getLogger(TrynityForce.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(TrynityForce.class.getName()).log(Level.SEVERE, null, ex);
        }
        gc.ad+=(dc.ad*2/3)/dc.as;
    }


}
